package lanqiao._13th.test;

/**
 * @author 挚爱之夕
 * @version 1.0
 * @implSpec lanqiao._13th.test
 * @since 2023 - 03 - 13 - 17:09
 */
public class VoltageAdapter implements IVoltage5v{
    private Voltage220v voltage220v;
    public VoltageAdapter(Voltage220v voltage220v){
        this.voltage220v = voltage220v;
    }
    @Override
    public int output5v() {
        int v = voltage220v.output220v();
        System.out.println("get:" + v + "v");
        System.out.println("转换");
        return v / 44;
    }
}
